//
// Created by lfm on 2025/3/25.
//

#include "Student.h"

Student::Student(string name, int age, string sex, string major, double score):
                Person(name, age, sex), m_Major(major),m_Score(score)
{
    cout << "Student的构造函数的调用" << endl;
}

Student::~Student()
{
    cout << "Student的析构函数调用" << endl;
}

void Student::DisplayInfoStudent()
{
    Person::DisplayInfoPerson();
    cout << "专业" << m_Major << endl;
    cout << "成绩" << m_Score << endl;
}


